package com.example.administrator.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.widget.Toast;

/**
 * Created by Administrator on 2018/6/2.
 */

public class NotifyService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent1) {
        return null;
    }

    public void onCreate(){
        AlarmService app = AlarmService.getApp();
        app.btEvent("From NotifyService.");
        Toast.makeText(app, "I'm a service from NotifyService", Toast.LENGTH_LONG).show();
    }
}
